echo =================================================================
echo android.bat update project --subprojects --target android-8 --name %1 --path %1
echo =================================================================
call android.bat update project --subprojects --target android-8 --name %1 --path %1
echo =================================================================
echo ant clean -buildfile %1
echo =================================================================
call ant clean -buildfile %1

echo =================================================================
echo ant debug -buildfile %1
echo =================================================================
call ant debug -buildfile %1

if exist %1\\bin\\%1-debug.apk goto CopyFile
    goto :EOF

goto :EOF

:CopyFile
echo =================================================================
echo copy file %1/bin/%1-debug.apk
echo =================================================================
call mv %1/bin/%1-debug.apk ../bin